
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>WeChatPYAPI介绍 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="教程/社区版跟专业版区别.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    WeChatPYAPI介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="教程/社区版跟专业版区别.html">
            
                <a href="教程/社区版跟专业版区别.html">
            
                    
                    社区版跟专业版的区别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    1、常规
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="教程/001-实例化API.html">
            
                <a href="教程/001-实例化API.html">
            
                    
                    1、实例化API对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="教程/002-启动微信.html">
            
                <a href="教程/002-启动微信.html">
            
                    
                    2、启动微信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="教程/003-获取个人信息.html">
            
                <a href="教程/003-获取个人信息.html">
            
                    
                    3、获取个人信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="教程/004-获取微信登录状态.html">
            
                <a href="教程/004-获取微信登录状态.html">
            
                    
                    4、获取微信登录状态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="教程/005-退出登录.html">
            
                <a href="教程/005-退出登录.html">
            
                    
                    5、退出登录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    2、拉取好友/群/成员
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="教程/006-拉取列表.html">
            
                <a href="教程/006-拉取列表.html">
            
                    
                    1、拉取列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="教程/007-获取群成员列表.html">
            
                <a href="教程/007-获取群成员列表.html">
            
                    
                    2、获取群成员列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="教程/048-拉取标签列表.html">
            
                <a href="教程/048-拉取标签列表.html">
            
                    
                    3、拉取标签列表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    3、发送消息类
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="教程/008-发送文本消息.html">
            
                <a href="教程/008-发送文本消息.html">
            
                    
                    1、发送文本消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="教程/009-发送图片消息.html">
            
                <a href="教程/009-发送图片消息.html">
            
                    
                    2、发送图片消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="教程/010-发送文件视频消息.html">
            
                <a href="教程/010-发送文件视频消息.html">
            
                    
                    3、发送文件/视频消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="教程/011-发送好友名片.html">
            
                <a href="教程/011-发送好友名片.html">
            
                    
                    4、发送好友名片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="教程/012-发送卡片链接.html">
            
                <a href="教程/012-发送卡片链接.html">
            
                    
                    5、发送卡片链接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="教程/049-发送XML消息.html">
            
                <a href="教程/049-发送XML消息.html">
            
                    
                    6、发送XML消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="教程/013-发送GIF表情消息.html">
            
                <a href="教程/013-发送GIF表情消息.html">
            
                    
                    7、发送GIF表情消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="教程/014-群聊发送消息并且@指定群成员.html">
            
                <a href="教程/014-群聊发送消息并且@指定群成员.html">
            
                    
                    8、群聊发送消息并且@指定群成员
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="教程/015-群聊发送文本信息并且@所有人.html">
            
                <a href="教程/015-群聊发送文本信息并且@所有人.html">
            
                    
                    9、群聊发送文本信息并且@所有人
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="教程/016-发送公众号卡片.html">
            
                <a href="教程/016-发送公众号卡片.html">
            
                    
                    10、发送公众号卡片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="教程/050-转发任意消息.html">
            
                <a href="教程/050-转发任意消息.html">
            
                    
                    11、转发任意消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="教程/058-发送位置消息.html">
            
                <a href="教程/058-发送位置消息.html">
            
                    
                    12、发送位置消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.13" data-path="教程/059-发送语音消息.html">
            
                <a href="教程/059-发送语音消息.html">
            
                    
                    13、发送语音消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    4、好友操作
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="教程/017-添加好友.html">
            
                <a href="教程/017-添加好友.html">
            
                    
                    1、添加好友
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="教程/018-删除好友.html">
            
                <a href="教程/018-删除好友.html">
            
                    
                    2、删除好友
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="教程/019-同意添加好友请求.html">
            
                <a href="教程/019-同意添加好友请求.html">
            
                    
                    3、同意添加好友请求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="教程/020-修改好友备注.html">
            
                <a href="教程/020-修改好友备注.html">
            
                    
                    4、修改好友备注
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="教程/068-修改好友描述信息.html">
            
                <a href="教程/068-修改好友描述信息.html">
            
                    
                    5、修改好友描述信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="教程/021-本地查询好友信息.html">
            
                <a href="教程/021-本地查询好友信息.html">
            
                    
                    6、本地查询好友信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="教程/022-网络查询好友信息.html">
            
                <a href="教程/022-网络查询好友信息.html">
            
                    
                    7、网络查询好友信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="教程/023-网络查询陌生人信息.html">
            
                <a href="教程/023-网络查询陌生人信息.html">
            
                    
                    8、网络查询陌生人信息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    5、群操作
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="教程/024-创建群聊.html">
            
                <a href="教程/024-创建群聊.html">
            
                    
                    1、创建群聊
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="教程/025-修改群名称.html">
            
                <a href="教程/025-修改群名称.html">
            
                    
                    2、修改群名称
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="教程/026-发送群公告.html">
            
                <a href="教程/026-发送群公告.html">
            
                    
                    3、发送群公告
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="教程/027-邀请好友进群.html">
            
                <a href="教程/027-邀请好友进群.html">
            
                    
                    4、邀请好友进群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="教程/056-同意好友邀请进群.html">
            
                <a href="教程/056-同意好友邀请进群.html">
            
                    
                    5、同意好友邀请进群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="教程/057-群二维码进群.html">
            
                <a href="教程/057-群二维码进群.html">
            
                    
                    6、群二维码进群
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="教程/028-踢出群成员.html">
            
                <a href="教程/028-踢出群成员.html">
            
                    
                    7、踢出群成员
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.8" data-path="教程/029-群聊保存取消保存到通讯录.html">
            
                <a href="教程/029-群聊保存取消保存到通讯录.html">
            
                    
                    8、群聊保存、取消保存到通讯录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.9" data-path="教程/030-批量查询群成员的群昵称.html">
            
                <a href="教程/030-批量查询群成员的群昵称.html">
            
                    
                    9、批量查询群成员的群昵称
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.10" data-path="教程/031-修改我在群里的昵称.html">
            
                <a href="教程/031-修改我在群里的昵称.html">
            
                    
                    10、修改我在群里的昵称
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.11" data-path="教程/032-退出群聊.html">
            
                <a href="教程/032-退出群聊.html">
            
                    
                    11、退出群聊
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <span>
            
                    
                    6、控制类
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="教程/033-开启关闭消息免打扰.html">
            
                <a href="教程/033-开启关闭消息免打扰.html">
            
                    
                    1、开启/关闭消息免打扰
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="教程/034-置顶取消置顶聊天.html">
            
                <a href="教程/034-置顶取消置顶聊天.html">
            
                    
                    2、置顶/取消置顶聊天
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <span>
            
                    
                    7、公众号
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="教程/035-关注公众号.html">
            
                <a href="教程/035-关注公众号.html">
            
                    
                    1、关注公众号
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="教程/036-取消关注公众号.html">
            
                <a href="教程/036-取消关注公众号.html">
            
                    
                    2、取消关注公众号
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="教程/060-获取公众号文章.html">
            
                <a href="教程/060-获取公众号文章.html">
            
                    
                    3、获取公众号文章
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="教程/052-获取外部浏览器可访问的URL.html">
            
                <a href="教程/052-获取外部浏览器可访问的URL.html">
            
                    
                    4、获取外部浏览器可访问的URL
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" >
            
                <span>
            
                    
                    8、朋友圈
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="教程/037-获取朋友圈数据.html">
            
                <a href="教程/037-获取朋友圈数据.html">
            
                    
                    1、获取朋友圈数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="教程/038-朋友圈点赞取消点赞.html">
            
                <a href="教程/038-朋友圈点赞取消点赞.html">
            
                    
                    2、朋友圈点赞/取消点赞
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="教程/039-朋友圈评论.html">
            
                <a href="教程/039-朋友圈评论.html">
            
                    
                    3、朋友圈评论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="教程/040-朋友圈删除评论.html">
            
                <a href="教程/040-朋友圈删除评论.html">
            
                    
                    4、朋友圈删除评论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="教程/063-获取指定好友的朋友圈.html">
            
                <a href="教程/063-获取指定好友的朋友圈.html">
            
                    
                    5、获取指定好友的朋友圈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.6" data-path="教程/064-朋友圈上传图片.html">
            
                <a href="教程/064-朋友圈上传图片.html">
            
                    
                    6、朋友圈上传图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.7" data-path="教程/065-发送转发朋友圈.html">
            
                <a href="教程/065-发送转发朋友圈.html">
            
                    
                    7、发送/转发朋友圈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.8" data-path="教程/066-发图文朋友圈.html">
            
                <a href="教程/066-发图文朋友圈.html">
            
                    
                    8、发图文朋友圈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.9" data-path="教程/067-发卡片链接朋友圈.html">
            
                <a href="教程/067-发卡片链接朋友圈.html">
            
                    
                    9、发卡片链接朋友圈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.10" data-path="教程/069-下载朋友圈图片.html">
            
                <a href="教程/069-下载朋友圈图片.html">
            
                    
                    10、下载朋友圈图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.11" data-path="教程/070-下载朋友圈视频.html">
            
                <a href="教程/070-下载朋友圈视频.html">
            
                    
                    11、下载朋友圈视频
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" >
            
                <span>
            
                    
                    9、小程序
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="教程/041-获取小程序code.html">
            
                <a href="教程/041-获取小程序code.html">
            
                    
                    1、获取小程序code
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" >
            
                <span>
            
                    
                    10、数据库
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="教程/042-获取所有数据库名称.html">
            
                <a href="教程/042-获取所有数据库名称.html">
            
                    
                    1、获取所有数据库名称
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="教程/043-查询数据库.html">
            
                <a href="教程/043-查询数据库.html">
            
                    
                    2、查询数据库
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" >
            
                <span>
            
                    
                    11、搜一搜
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="教程/072-搜一搜.html">
            
                <a href="教程/072-搜一搜.html">
            
                    
                    1、搜一搜
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" >
            
                <span>
            
                    
                    12、CDN上下载
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="教程/073-CDN下载图片.html">
            
                <a href="教程/073-CDN下载图片.html">
            
                    
                    1、CDN下载图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="教程/074-CDN下载视频.html">
            
                <a href="教程/074-CDN下载视频.html">
            
                    
                    2、CDN下载视频
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="教程/075-CDN下载文件.html">
            
                <a href="教程/075-CDN下载文件.html">
            
                    
                    3、CDN下载文件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" >
            
                <span>
            
                    
                    13、其他
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="教程/044-收款.html">
            
                <a href="教程/044-收款.html">
            
                    
                    1、收款
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="教程/045-退款.html">
            
                <a href="教程/045-退款.html">
            
                    
                    2、退款
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="教程/046-保存图片.html">
            
                <a href="教程/046-保存图片.html">
            
                    
                    3、保存图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="教程/047-开启关闭保存语音.html">
            
                <a href="教程/047-开启关闭保存语音.html">
            
                    
                    4、开启/关闭保存语音
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.5" data-path="教程/051-OCR文字识别.html">
            
                <a href="教程/051-OCR文字识别.html">
            
                    
                    5、OCR文字识别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.6" data-path="教程/053-获取当前微信进程的PID.html">
            
                <a href="教程/053-获取当前微信进程的PID.html">
            
                    
                    6、获取当前微信进程的PID
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.7" data-path="教程/054-自动下载图片视频文件.html">
            
                <a href="教程/054-自动下载图片视频文件.html">
            
                    
                    7、自动下载图片/视频/文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.8" data-path="教程/055-获取当前聊天窗口信息.html">
            
                <a href="教程/055-获取当前聊天窗口信息.html">
            
                    
                    8、获取当前聊天窗口信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.9" data-path="教程/061-显示微信窗口.html">
            
                <a href="教程/061-显示微信窗口.html">
            
                    
                    9、显示微信窗口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.10" data-path="教程/062-隐藏微信窗口.html">
            
                <a href="教程/062-隐藏微信窗口.html">
            
                    
                    10、隐藏微信窗口
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.11" data-path="教程/071-禁止微信自动更新.html">
            
                <a href="教程/071-禁止微信自动更新.html">
            
                    
                    11、禁止微信自动更新
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="教程/接收消息.html">
            
                <a href="教程/接收消息.html">
            
                    
                    接收消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="常见问题及解决方案.html">
            
                <a href="常见问题及解决方案.html">
            
                    
                    常见问题及解决方案
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >WeChatPYAPI介绍</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="wechatpyapi&#x4ECB;&#x7ECD;">WeChatPYAPI&#x4ECB;&#x7ECD;</h1>
<p>&#x300A;WeChatPYAPI&#x300B;&#x662F;&#x57FA;&#x4E8E;PC&#x7AEF;&#x7684;Python&#x63A5;&#x53E3;&#xFF0C;&#x5F00;&#x53D1;&#x8005;&#x53EF;&#x901A;&#x8FC7;Python&#x8F7B;&#x677E;&#x8C03;&#x7528;&#xFF0C;&#x4E5F;&#x53EF;&#x901A;&#x8FC7;HTTP&#x8C03;&#x7528;&#x3002;&#x53EF;&#x8FDB;&#x884C;&#x4E8C;&#x6B21;&#x5F00;&#x53D1;&#xFF0C;&#x5B9E;&#x73B0;&#x5FAE;&#x4FE1;&#x673A;&#x5668;&#x4EBA;&#x3001;&#x7FA4;&#x7BA1;&#x7406;&#x7B49;&#x5F3A;&#x5927;&#x7684;&#x529F;&#x80FD;&#xFF01;</p>
<h3 id="&#x793E;&#x533A;&#x7248;&#x8DDF;&#x4E13;&#x4E1A;&#x7248;&#x7684;&#x533A;&#x522B;&#xFF1F;">&#x793E;&#x533A;&#x7248;&#x8DDF;&#x4E13;&#x4E1A;&#x7248;&#x7684;&#x533A;&#x522B;&#xFF1F;</h3>
<ul>
<li>&#x793E;&#x533A;&#x7248;&#xFF1A;<ul>
<li>&#x9EBB;&#x96C0;&#x867D;&#x5C0F;&#x4E94;&#x810F;&#x4FF1;&#x5168;&#xFF01;</li>
<li>&#x4E0D;&#x652F;&#x6301;&#x957F;&#x65F6;&#x95F4;&#x8FD0;&#x884C;</li>
<li>&#x4E0D;&#x518D;&#x7EF4;&#x62A4;&#x66F4;&#x65B0;</li>
<li>&#x5FAE;&#x4FE1;&#x7248;&#x672C;&#xFF1A;3.6.0.18</li>
</ul>
</li>
<li>&#x4E13;&#x4E1A;&#x7248;&#xFF1A;<ul>
<li>&#x529F;&#x80FD;&#x66F4;&#x52A0;&#x5F3A;&#x5927;&#x3001;&#x7A33;&#x5B9A;&#xFF01;</li>
<li>&#x652F;&#x6301;&#x957F;&#x65F6;&#x95F4;&#x8FD0;&#x884C;</li>
<li>&#x6301;&#x7EED;&#x66F4;&#x65B0;&#x8FED;&#x4EE3;</li>
<li>&#x5FAE;&#x4FE1;&#x7248;&#x672C;&#xFF1A;3.9.10.19</li>
</ul>
</li>
</ul>
<blockquote>
<p><span style="color: red">&#x529F;&#x80FD;&#x533A;&#x522B;&#x8BF7;&#x6253;&#x5F00;&#x300A;&#x63A5;&#x53E3;&#x4F7F;&#x7528;&#x6587;&#x6863;&#x300B;&#x8FDB;&#x884C;&#x67E5;&#x770B;</span></p>
</blockquote>
<h2 id="&#x4F7F;&#x7528;&#x6559;&#x7A0B;">&#x4F7F;&#x7528;&#x6559;&#x7A0B;</h2>
<ol>
<li>&#x514B;&#x9686;&#x8BE5;&#x9879;&#x76EE;<span style="color: red">&#xFF08;&#x8BF7;&#x5173;&#x95ED;&#x4F60;&#x7684;&#x6740;&#x6BD2;&#x8F6F;&#x4EF6;&#xFF0C;&#x5426;&#x5219;&#x53EF;&#x80FD;&#x4F1A;&#x8BEF;&#x5220;dll&#x6587;&#x4EF6;&#xFF09;</span></li>
<li>&#x9009;&#x62E9;&#x5BF9;&#x5E94;python&#x89E3;&#x91CA;&#x5668;&#x73AF;&#x5883;&#xFF08;&#x5FC5;&#x987B;&#x662F;64&#x4F4D;&#x7684;&#xFF09;</li>
<li>&#x6267;&#x884C;&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x7684;demo.py</li>
<li>&#x4F7F;&#x7528;&#x524D;&#x8BF7;&#x5148;&#x5B89;&#x88C5;&#x6307;&#x5B9A;&#x7248;&#x672C;&#x7684;&#x5FAE;&#x4FE1;</li>
</ol>
<blockquote>
<p>&#x6307;&#x5B9A;&#x7248;&#x672C;&#x5FAE;&#x4FE1;&#x5B89;&#x88C5;&#x5305;&#xFF1A;<a href="https://pan.baidu.com/s/1dxBuvDgAeI0mFjGsY6NVNA" target="_blank">https://pan.baidu.com/s/1dxBuvDgAeI0mFjGsY6NVNA</a></p>
<p>&#x63D0;&#x53D6;&#x7801;&#xFF1A;sszs</p>
</blockquote>
<h2 id="&#x7591;&#x95EE;&#x89E3;&#x7B54;&#x3001;&#x8054;&#x7CFB;&#x65B9;&#x5F0F;">&#x7591;&#x95EE;&#x89E3;&#x7B54;&#x3001;&#x8054;&#x7CFB;&#x65B9;&#x5F0F;</h2>
<ul>
<li>&#x4EA4;&#x6D41;QQ&#x7FA4;&#xFF1A;54995858</li>
<li>tg&#x8BA8;&#x8BBA;&#x7EC4;&#xFF1A;<a href="https://t.me/+yb0O_hNMqIVlODI1" target="_blank">https://t.me/+yb0O_hNMqIVlODI1</a></li>
<li>&#x8FDB;&#x7FA4;&#x89E3;&#x51B3;&#x4E00;&#x5207;&#x86C7;&#x76AE;&#x95EE;&#x9898;&#xFF01;</li>
</ul>
<h2 id="&#x5B66;&#x4E60;--&#x53C2;&#x8003;">&#x5B66;&#x4E60; &amp; &#x53C2;&#x8003;</h2>
<p><a href="https://github.com/mrsanshui/WeChatApi.git" target="_blank">https://github.com/mrsanshui/WeChatApi.git</a></p>
<h2 id="helpwechatpyapi">help(WeChatPYApi)</h2>
<pre><code class="lang-python">class WeChatPYApi(builtins.object)
 |  &#x57FA;&#x4E8E;PC&#x5FAE;&#x4FE1;&#x7684;Python-API
 |  
 |  Methods defined here:
 |  
 |  __init__(self, msg_callback, **kwargs)
 |      &#x521D;&#x59CB;&#x5316;&#x65B9;&#x6CD5;
 |      :param msg_callback: &#x6D88;&#x606F;&#x56DE;&#x8C03;&#x51FD;&#x6570;
 |      :param exit_callback: &#x9000;&#x51FA;&#x5FAE;&#x4FE1;&#x540E;&#x7684;&#x56DE;&#x8C03;&#x51FD;&#x6570;
 |      :param logger: &#x65E5;&#x5FD7;&#x5668;&#x53E5;&#x67C4;
 |      :param kwargs: &#x7565;
 |  
 |  add_friend(self, wx_id_or_v3, msg, method=30)
 |      &#x6DFB;&#x52A0;&#x597D;&#x53CB;
 |      :param wx_id_or_v3: &#x8981;&#x6DFB;&#x52A0;&#x7684;&#x5FAE;&#x4FE1;ID&#x6216;&#x8005;v3&#x6570;&#x636E;
 |      :param msg: &#x6DFB;&#x52A0;&#x65F6;&#x7684;&#x6253;&#x62DB;&#x547C;&#x6D88;&#x606F;
 |      :param method: &#x6DFB;&#x52A0;&#x65B9;&#x5F0F;&#x3010;&#x9ED8;&#x8BA4;30&#x3011;
 |      :return: &#x65E0;
 |  
 |  agree_friend(self, msg_data)
 |      &#x540C;&#x610F;&#x6DFB;&#x52A0;&#x597D;&#x53CB;&#x8BF7;&#x6C42;
 |      :param msg_data: &#x597D;&#x53CB;&#x8BF7;&#x6C42;&#x65F6;&#x7684;&#x6D88;&#x606F;&#x6570;&#x636E;
 |      :return: &#x65E0;
 |  
 |  agree_friend_invite_join_chat_room(self, msg_data)
 |      &#x540C;&#x610F;&#x597D;&#x53CB;&#x9080;&#x8BF7;&#x8FDB;&#x7FA4;
 |      :param msg_data: &#x6D88;&#x606F;&#x6570;&#x636E;
 |      :return: &#x7FA4;ID
 |  
 |  alter_chat_room_name(self, to_chat_room, name)
 |      &#x4FEE;&#x6539;&#x7FA4;&#x540D;&#x79F0;
 |      :param to_chat_room: &#x7FA4;ID
 |      :param name: &#x7FA4;&#x540D;&#x79F0;
 |      :return: &#x65E0;
 |  
 |  alter_friend_desc(self, to_wx, desc)
 |      &#x4FEE;&#x6539;&#x597D;&#x53CB;&#x63CF;&#x8FF0;&#x4FE1;&#x606F;
 |      :param to_wx: &#x597D;&#x53CB;&#x5FAE;&#x4FE1;ID
 |      :param desc: &#x63CF;&#x8FF0;&#x4FE1;&#x606F;
 |      :return: &#x65E0;
 |  
 |  alter_friend_remark(self, to_wx, remark)
 |      &#x4FEE;&#x6539;&#x597D;&#x53CB;&#x5907;&#x6CE8;
 |      :param to_wx: &#x597D;&#x53CB;&#x5FAE;&#x4FE1;ID
 |      :param remark: &#x5907;&#x6CE8;&#x5185;&#x5BB9;
 |      :return: &#x65E0;
 |  
 |  alter_my_name_in_chat_room(self, to_chat_room, name)
 |      &#x4FEE;&#x6539;&#x6211;&#x5728;&#x7FA4;&#x91CC;&#x7684;&#x6635;&#x79F0;
 |      :param to_chat_room: &#x7FA4;ID
 |      :param name: &#x6635;&#x79F0;
 |      :return: &#x65E0;
 |  
 |  batch_query_member_nick_name(self, to_chat_room, wx_id_list)
 |      &#x6279;&#x91CF;&#x67E5;&#x8BE2;&#x7FA4;&#x6210;&#x5458;&#x7684;&#x7FA4;&#x6635;&#x79F0;
 |      :param to_chat_room: &#x7FA4;ID
 |      :param wx_id_list: &#x7FA4;&#x6210;&#x5458;&#x7684;&#x5FAE;&#x4FE1;ID&#x5217;&#x8868;
 |      :return: List&#x6570;&#x636E;
 |  
 |  cdn_download_file(self, file_size, file_id, aes_key, save_path)
 |      CDN&#x4E0B;&#x8F7D;&#x6587;&#x4EF6;
 |      :param file_size: &#x6587;&#x4EF6;&#x5927;&#x5C0F;&#x3010;&#x6D88;&#x606F;&#x56DE;&#x8C03;&#x4E2D;&#x83B7;&#x53D6;&#x3011;
 |      :param file_id: &#x6587;&#x4EF6;ID&#x3010;&#x6D88;&#x606F;&#x56DE;&#x8C03;&#x4E2D;&#x83B7;&#x53D6;&#x3011;
 |      :param aes_key: aes_key&#x3010;&#x6D88;&#x606F;&#x56DE;&#x8C03;&#x4E2D;&#x83B7;&#x53D6;&#x3011;
 |      :param save_path: &#x4FDD;&#x5B58;&#x8DEF;&#x5F84;
 |      :return: &#x65E0;
 |  
 |  cdn_download_img(self, img_type, file_id, aes_key, save_path)
 |      CDN&#x4E0B;&#x8F7D;&#x56FE;&#x7247;
 |      :param img_type: &#x56FE;&#x7247;&#x7C7B;&#x578B;&#x3010;1=&#x7F29;&#x7565;&#x56FE; 2=&#x9AD8;&#x6E05;&#x56FE; 3=&#x539F;&#x56FE;&#x3011;
 |      :param file_id: &#x6587;&#x4EF6;ID&#x3010;&#x6D88;&#x606F;&#x56DE;&#x8C03;&#x4E2D;&#x83B7;&#x53D6;&#x3011;
 |      :param aes_key: aes_key&#x3010;&#x6D88;&#x606F;&#x56DE;&#x8C03;&#x4E2D;&#x83B7;&#x53D6;&#x3011;
 |      :param save_path: &#x4FDD;&#x5B58;&#x8DEF;&#x5F84;
 |      :return: &#x65E0;
 |  
 |  cdn_download_video(self, file_id, aes_key, save_path)
 |      CDN&#x4E0B;&#x8F7D;&#x89C6;&#x9891;
 |      :param file_id: &#x6587;&#x4EF6;ID&#x3010;&#x6D88;&#x606F;&#x56DE;&#x8C03;&#x4E2D;&#x83B7;&#x53D6;&#x3011;
 |      :param aes_key: aes_key&#x3010;&#x6D88;&#x606F;&#x56DE;&#x8C03;&#x4E2D;&#x83B7;&#x53D6;&#x3011;
 |      :param save_path: &#x4FDD;&#x5B58;&#x8DEF;&#x5F84;
 |      :return: &#x65E0;
 |  
 |  collection(self, msg_data)
 |      &#x6536;&#x6B3E;
 |      :param msg_data: &#x6D88;&#x606F;&#x6570;&#x636E;
 |      :return: &#x65E0;
 |  
 |  comment_moments(self, moments_id, content)
 |      &#x670B;&#x53CB;&#x5708;&#x8BC4;&#x8BBA;
 |      :param moments_id: &#x670B;&#x53CB;&#x5708;ID
 |      :param content: &#x8BC4;&#x8BBA;&#x5185;&#x5BB9;
 |      :return: &#x65E0;
 |  
 |  create_chat_room(self, wx_id_list)
 |      &#x521B;&#x5EFA;&#x7FA4;&#x804A;
 |      :param wx_id_list: &#x9080;&#x8BF7;&#x8FDB;&#x7FA4;&#x7684;&#x5FAE;&#x4FE1;ID&#x5217;&#x8868;
 |      :return: &#x7FA4;ID
 |  
 |  del_comment_moments(self, moments_id, comment_id)
 |      &#x670B;&#x53CB;&#x5708;&#x5220;&#x9664;&#x8BC4;&#x8BBA;
 |      :param moments_id: &#x670B;&#x53CB;&#x5708;ID
 |      :param comment_id: &#x8BC4;&#x8BBA;ID
 |      :return: &#x65E0;
 |  
 |  delete_chat_room_member(self, to_chat_room, to_wx_list)
 |      &#x8E22;&#x51FA;&#x7FA4;&#x6210;&#x5458;
 |      :param to_chat_room: &#x7FA4;ID
 |      :param to_wx_list: &#x7FA4;&#x6210;&#x5458;&#x5FAE;&#x4FE1;ID&#x5217;&#x8868;
 |      :return: &#x65E0;
 |  
 |  delete_friend(self, to_wx)
 |      &#x5220;&#x9664;&#x597D;&#x53CB;
 |      :param to_wx: &#x8981;&#x5220;&#x9664;&#x7684;&#x5FAE;&#x4FE1;ID
 |      :return: &#x65E0;
 |  
 |  exit_chat_room(self, to_chat_room)
 |      &#x9000;&#x51FA;&#x7FA4;&#x804A;
 |      :param to_chat_room: &#x7FA4;ID
 |      :return: &#x65E0;
 |  
 |  follow_mp(self, mp_id)
 |      &#x5173;&#x6CE8;&#x516C;&#x4F17;&#x53F7;
 |      :param mp_id: &#x516C;&#x4F17;&#x53F7;ID
 |      :return: &#x65E0;
 |  
 |  forward_msg(self, to_wx, msg_id)
 |      &#x8F6C;&#x53D1;&#x4EFB;&#x610F;&#x6D88;&#x606F;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param msg_id: &#x6D88;&#x606F;ID
 |      :return: &#x65E0;
 |  
 |  get_access_url(self, url)
 |      &#x83B7;&#x53D6;&#x5916;&#x90E8;&#x6D4F;&#x89C8;&#x5668;&#x53EF;&#x8BBF;&#x95EE;&#x7684;URL
 |      :param url: &#x53EA;&#x80FD;&#x5728;&#x5FAE;&#x4FE1;&#x4E2D;&#x6253;&#x5F00;&#x7684;URL&#xFF08;&#x5982;&#x516C;&#x4F17;&#x53F7;&#x94FE;&#x63A5;&#xFF09;
 |      :return: &#x53EF;&#x8BBF;&#x95EE;&#x7684;URL
 |  
 |  get_chat_room_members(self, to_chat_room)
 |      &#x83B7;&#x53D6;&#x7FA4;&#x6210;&#x5458;&#x5217;&#x8868;
 |      :param to_chat_room: &#x7FA4;ID
 |      :return: list&#x6570;&#x636E;
 |  
 |  get_cur_window_info(self)
 |      &#x83B7;&#x53D6;&#x5F53;&#x524D;&#x804A;&#x5929;&#x7A97;&#x53E3;&#x4FE1;&#x606F;
 |      :return: dict&#x6570;&#x636E;
 |  
 |  get_cur_wx_pid(self)
 |      &#x83B7;&#x53D6;&#x5F53;&#x524D;&#x5FAE;&#x4FE1;&#x8FDB;&#x7A0B;&#x7684;PID
 |      :return: &#x8FDB;&#x7A0B;PID
 |  
 |  get_db_name_list(self)
 |      &#x83B7;&#x53D6;&#x6240;&#x6709;&#x6570;&#x636E;&#x5E93;&#x540D;&#x79F0;
 |      :return: List&#x6570;&#x636E;
 |  
 |  get_login_state(self)
 |      &#x83B7;&#x53D6;&#x5FAE;&#x4FE1;&#x767B;&#x5F55;&#x72B6;&#x6001;
 |      :return: True:&#x5DF2;&#x767B;&#x5F55; False:&#x672A;&#x767B;&#x5F55;
 |  
 |  get_moments(self, last_id=None)
 |      &#x83B7;&#x53D6;&#x670B;&#x53CB;&#x5708;&#x6570;&#x636E;
 |      :param last_id: &#x6700;&#x540E;&#x4E00;&#x6761;&#x670B;&#x53CB;&#x5708;&#x7684;ID&#x3010;&#x7FFB;&#x9875;&#x5FC5;&#x4F20;&#x3011;
 |      :return: List&#x6570;&#x636E;
 |  
 |  get_moments_by_friend(self, wx_id, last_id=None)
 |      &#x83B7;&#x53D6;&#x6307;&#x5B9A;&#x597D;&#x53CB;&#x7684;&#x670B;&#x53CB;&#x5708;
 |      :param wx_id: &#x597D;&#x53CB;&#x7684;&#x5FAE;&#x4FE1;ID
 |      :param last_id: &#x6700;&#x540E;&#x4E00;&#x6761;&#x670B;&#x53CB;&#x5708;&#x7684;ID&#x3010;&#x7FFB;&#x9875;&#x5FC5;&#x4F20;&#x3011;
 |      :return: List&#x6570;&#x636E;
 |  
 |  get_mp_doc(self, gh_id, next_offset=None)
 |      &#x83B7;&#x53D6;&#x516C;&#x4F17;&#x53F7;&#x6587;&#x7AE0;
 |      :param gh_id: &#x516C;&#x4F17;&#x53F7;ID
 |      :param next_offset: &#x4E0B;&#x4E00;&#x9875;&#x7684;&#x504F;&#x79FB;&#x3010;&#x7FFB;&#x9875;&#x5FC5;&#x4F20;&#x3011;
 |      :return: Dict&#x6570;&#x636E;
 |  
 |  get_self_info(self)
 |      &#x83B7;&#x53D6;&#x4E2A;&#x4EBA;&#x4FE1;&#x606F;
 |      :return: &#x672A;&#x767B;&#x5F55;&#x65F6;&#x8FD4;&#x56DE;None&#xFF0C;&#x767B;&#x5F55;&#x6210;&#x529F;&#x8FD4;&#x56DE;&#x5B57;&#x5178;&#x6570;&#x636E;
 |  
 |  get_small_app_code(self, app_id)
 |      &#x83B7;&#x53D6;&#x5C0F;&#x7A0B;&#x5E8F;code
 |      :param app_id: &#x5C0F;&#x7A0B;&#x5E8F;&#x7684;AppId
 |      :return: &#x5C0F;&#x7A0B;&#x5E8F;code
 |  
 |  hide_wx_windows(self)
 |      &#x9690;&#x85CF;&#x5FAE;&#x4FE1;&#x7A97;&#x53E3;
 |      :return: &#x65E0;
 |  
 |  invite_friend_enter_chat_room(self, to_chat_room, to_wx_list)
 |      &#x9080;&#x8BF7;&#x597D;&#x53CB;&#x8FDB;&#x7FA4;
 |      :param to_chat_room: &#x7FA4;ID
 |      :param to_wx_list: &#x597D;&#x53CB;&#x5FAE;&#x4FE1;ID&#x5217;&#x8868;
 |      :return: &#x65E0;
 |  
 |  like_moments(self, moments_id, state)
 |      &#x670B;&#x53CB;&#x5708;&#x70B9;&#x8D5E;/&#x53D6;&#x6D88;&#x70B9;&#x8D5E;
 |      :param moments_id: &#x670B;&#x53CB;&#x5708;ID
 |      :param state: True:&#x70B9;&#x8D5E; False:&#x53D6;&#x6D88;&#x70B9;&#x8D5E;
 |      :return: &#x65E0;
 |  
 |  logout(self)
 |      &#x9000;&#x51FA;&#x767B;&#x5F55;
 |      :return: &#x65E0;
 |  
 |  mask_msg_switch(self, to_id, switch)
 |      &#x5F00;&#x542F;/&#x5173;&#x95ED;&#x6D88;&#x606F;&#x514D;&#x6253;&#x6270;
 |      :param to_id: &#x597D;&#x53CB;ID/&#x7FA4;ID
 |      :param switch: True:&#x5F00;&#x542F;&#x514D;&#x6253;&#x6270; False:&#x5173;&#x95ED;&#x514D;&#x6253;&#x6270;
 |      :return: &#x65E0;
 |  
 |  moments_upload_img(self, path)
 |      &#x670B;&#x53CB;&#x5708;&#x4E0A;&#x4F20;&#x56FE;&#x7247;
 |      :param path: &#x56FE;&#x7247;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :return: Dict&#x6570;&#x636E;
 |  
 |  ocr_recognition(self, path, is_split=False)
 |      OCR&#x6587;&#x5B57;&#x8BC6;&#x522B;
 |      :param path: &#x56FE;&#x7247;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :param is_split: &#x662F;&#x5426;&#x5206;&#x6BB5;&#x8FD4;&#x56DE;
 |      :return: &#x8BC6;&#x522B;&#x7ED3;&#x679C;&#xFF08;&#x5206;&#x6BB5;&#x6A21;&#x5F0F;&#x8FD4;&#x56DE;list&#xFF09;
 |  
 |  pull_label_list(self)
 |      &#x62C9;&#x53D6;&#x6807;&#x7B7E;&#x5217;&#x8868;
 |      :return: list&#x6570;&#x636E;
 |  
 |  pull_list(self, pull_type)
 |      &#x62C9;&#x53D6;&#x5217;&#x8868;&#xFF08;&#x597D;&#x53CB;/&#x7FA4;/&#x516C;&#x4F17;&#x53F7;/&#x5176;&#x4ED6;&#xFF09;
 |      :param pull_type: &#x597D;&#x53CB;:1 &#x7FA4;:2 &#x516C;&#x4F17;&#x53F7;:3 &#x5176;&#x4ED6;:4
 |      :return: list&#x6570;&#x636E;
 |  
 |  qr_code_join_chat_room(self, url)
 |      &#x7FA4;&#x4E8C;&#x7EF4;&#x7801;&#x8FDB;&#x7FA4;
 |      :param url: &#x7FA4;&#x4E8C;&#x7EF4;&#x7801;&#x89E3;&#x6790;&#x7684;URL
 |      :return: &#x7FA4;ID
 |  
 |  query_friend_info(self, to_wx)
 |      &#x67E5;&#x8BE2;&#x597D;&#x53CB;&#x4FE1;&#x606F;
 |      :param to_wx: &#x8981;&#x67E5;&#x8BE2;&#x7684;&#x5FAE;&#x4FE1;ID
 |      :return: dict&#x6570;&#x636E;
 |  
 |  query_friend_info_by_net(self, to_wx)
 |      &#x7F51;&#x7EDC;&#x67E5;&#x8BE2;&#x597D;&#x53CB;&#x4FE1;&#x606F;
 |      :param to_wx: &#x8981;&#x67E5;&#x8BE2;&#x7684;&#x5FAE;&#x4FE1;ID
 |      :return: dict&#x6570;&#x636E;
 |  
 |  query_wx_info_by_net(self, key)
 |      &#x7F51;&#x7EDC;&#x67E5;&#x8BE2;&#x964C;&#x751F;&#x4EBA;&#x4FE1;&#x606F;
 |      :param key: &#x624B;&#x673A;&#x53F7;/QQ&#x53F7;/&#x5FAE;&#x4FE1;&#x53F7;
 |      :return: dict&#x6570;&#x636E;
 |  
 |  refund(self, msg_data)
 |      &#x9000;&#x6B3E;
 |      :param msg_data: &#x6D88;&#x606F;&#x6570;&#x636E;
 |      :return: &#x65E0;
 |  
 |  save_img(self, save_path, msg_data)
 |      &#x4FDD;&#x5B58;&#x56FE;&#x7247;
 |      :param save_path: &#x4FDD;&#x5B58;&#x56FE;&#x7247;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :param msg_data: &#x6D88;&#x606F;&#x6570;&#x636E;
 |      :return: &#x65E0;
 |  
 |  save_to_addr_book(self, to_chat_room, switch)
 |      &#x7FA4;&#x804A;&#x4FDD;&#x5B58;/&#x53D6;&#x6D88;&#x4FDD;&#x5B58;&#x5230;&#x901A;&#x8BAF;&#x5F55;
 |      :param to_chat_room: &#x7FA4;ID
 |      :param switch: True:&#x4FDD;&#x5B58; False:&#x53D6;&#x6D88;&#x4FDD;&#x5B58;
 |      :return: &#x65E0;
 |  
 |  save_voice_switch(self, save_dir_path, switch)
 |      &#x5F00;&#x542F;/&#x5173;&#x95ED;&#x4FDD;&#x5B58;&#x8BED;&#x97F3;
 |      :param save_dir_path: &#x4FDD;&#x5B58;&#x8BED;&#x97F3;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;&#x3010;&#x76EE;&#x5F55;&#x8DEF;&#x5F84;&#x3011;
 |      :param switch: True:&#x5F00;&#x542F; False:&#x5173;&#x95ED;
 |      :return: &#x65E0;
 |  
 |  select_db(self, db_name, sql_text)
 |      &#x67E5;&#x8BE2;&#x6570;&#x636E;&#x5E93;&#xFF0C;&#x6CE8;&#x610F;&#xFF0C;&#x8FD4;&#x5B57;&#x6BB5;&#x53D6;&#x51B3;&#x4E8E;&#x4F60;&#x7684;&#x67E5;&#x8BE2;&#x8BED;&#x53E5;&#xFF0C;&#x67E5;&#x8BE2;&#x7ED3;&#x679C;&#x8F83;&#x591A;&#x53EF;&#x80FD;&#x4F1A;&#x5BFC;&#x81F4;&#x5D29;&#x6E83;&#xFF0C;&#x5EFA;&#x8BAE;&#x8FD0;&#x7528;&#x597D;sql&#x8BED;&#x53E5;&#x4E2D;&#x7684;limit
 |      :param db_name: &#x6570;&#x636E;&#x5E93;&#x540D;&#x79F0;
 |      :param sql_text: sql&#x8BED;&#x53E5;
 |      :return: &#x67E5;&#x8BE2;&#x7ED3;&#x679C;&#x3010;List&#x6570;&#x636E;&#x3011;
 |  
 |  send_card_link(self, to_wx, title, desc, target_url, img_url)
 |      &#x53D1;&#x9001;&#x5361;&#x7247;&#x94FE;&#x63A5;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param title: &#x5361;&#x7247;&#x6807;&#x9898;
 |      :param desc: &#x5361;&#x7247;&#x63CF;&#x8FF0;
 |      :param target_url: &#x76EE;&#x6807;&#x5730;&#x5740;
 |      :param img_url: &#x5361;&#x7247;&#x5C01;&#x9762;&#x5730;&#x5740;
 |      :return: &#x65E0;
 |  
 |  send_card_link_moments(self, text, title, desc, target_url, thumb_url, is_private=False)
 |      &#x53D1;&#x5361;&#x7247;&#x94FE;&#x63A5;&#x670B;&#x53CB;&#x5708;
 |      :param text: &#x6587;&#x672C;&#x5185;&#x5BB9;
 |      :param title: &#x5361;&#x7247;&#x6807;&#x9898;
 |      :param desc: &#x5361;&#x7247;&#x63CF;&#x8FF0;
 |      :param target_url: &#x76EE;&#x6807;&#x5730;&#x5740;
 |      :param thumb_url: &#x5C01;&#x9762;&#x5730;&#x5740;&#x3010;&#x4E0A;&#x4F20;&#x63A5;&#x53E3;&#x8FD4;&#x56DE;&#x7684;thumb_url&#x3011;
 |      :param is_private: False:&#x6240;&#x6709;&#x4EBA;&#x53EF;&#x89C1; True:&#x4EC5;&#x81EA;&#x5DF1;&#x53EF;&#x89C1;&#x3010;&#x9ED8;&#x8BA4;&#x4E3A;False&#x3011;
 |      :return: &#x670B;&#x53CB;&#x5708;ID
 |  
 |  send_file(self, to_wx, path)
 |      &#x53D1;&#x9001;&#x6587;&#x4EF6;/&#x89C6;&#x9891;&#x6D88;&#x606F;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param path: &#x6587;&#x4EF6;/&#x89C6;&#x9891;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :return: &#x65E0;
 |  
 |  send_friend_card(self, to_wx, friend_wx, friend_name)
 |      &#x53D1;&#x9001;&#x597D;&#x53CB;&#x540D;&#x7247;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param friend_wx: &#x597D;&#x53CB;&#x5FAE;&#x4FE1;ID
 |      :param friend_name: &#x597D;&#x53CB;&#x6635;&#x79F0;
 |      :return: &#x65E0;
 |  
 |  send_gif(self, to_wx, path)
 |      &#x53D1;&#x9001;GIF&#x8868;&#x60C5;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param path: gif&#x56FE;&#x7247;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :return: &#x65E0;
 |  
 |  send_img(self, to_wx, path)
 |      &#x53D1;&#x9001;&#x56FE;&#x7247;&#x6D88;&#x606F;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param path: &#x56FE;&#x7247;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :return: &#x65E0;
 |  
 |  send_img_text_moments(self, text, img_url_list=None, is_private=False)
 |      &#x53D1;&#x56FE;&#x6587;&#x670B;&#x53CB;&#x5708;
 |      :param text: &#x6587;&#x672C;&#x5185;&#x5BB9;
 |      :param img_url_list: &#x4E0A;&#x4F20;&#x63A5;&#x53E3;&#x8FD4;&#x56DE;&#x7684;&#x56FE;&#x7247;url&#x5217;&#x8868;&#x3010;&#x4E0D;&#x4F20;&#x5219;&#x662F;&#x53D1;&#x7EAF;&#x6587;&#x672C;&#x3011;
 |      :param is_private: False:&#x6240;&#x6709;&#x4EBA;&#x53EF;&#x89C1; True:&#x4EC5;&#x81EA;&#x5DF1;&#x53EF;&#x89C1;&#x3010;&#x9ED8;&#x8BA4;&#x4E3A;False&#x3011;
 |      :return: &#x670B;&#x53CB;&#x5708;ID
 |  
 |  send_location(self, to_wx, lon, lat, address, detail_address)
 |      &#x53D1;&#x9001;&#x4F4D;&#x7F6E;&#x6D88;&#x606F;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param lon: &#x7ECF;&#x5EA6;
 |      :param lat: &#x7EAC;&#x5EA6;
 |      :param address: &#x5730;&#x5740;
 |      :param detail_address: &#x8BE6;&#x7EC6;&#x5730;&#x5740;
 |      :return: &#x65E0;
 |  
 |  send_mp_card(self, to_wx, mp_id, mp_name)
 |      &#x53D1;&#x9001;&#x516C;&#x4F17;&#x53F7;&#x540D;&#x7247;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param mp_id: &#x516C;&#x4F17;&#x53F7;ID
 |      :param mp_name: &#x516C;&#x4F17;&#x53F7;&#x540D;&#x79F0;
 |      :return: &#x65E0;
 |  
 |  send_notice(self, to_chat_room, content)
 |      &#x53D1;&#x9001;&#x7FA4;&#x516C;&#x544A;
 |      :param to_chat_room: &#x7FA4;ID
 |      :param content: &#x516C;&#x544A;&#x5185;&#x5BB9;
 |      :return: &#x65E0;
 |  
 |  send_or_forward_moments(self, xml_content, is_private=False)
 |      &#x53D1;&#x9001;/&#x8F6C;&#x53D1;&#x670B;&#x53CB;&#x5708;
 |      :param xml_content: xml&#x5185;&#x5BB9;
 |      :param is_private: False:&#x6240;&#x6709;&#x4EBA;&#x53EF;&#x89C1; True:&#x4EC5;&#x81EA;&#x5DF1;&#x53EF;&#x89C1;&#x3010;&#x9ED8;&#x8BA4;&#x4E3A;False&#x3011;
 |      :return: &#x670B;&#x53CB;&#x5708;ID
 |  
 |  send_text(self, to_wx, msg)
 |      &#x53D1;&#x9001;&#x6587;&#x672C;&#x6D88;&#x606F;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param msg: &#x6D88;&#x606F;&#x5185;&#x5BB9;
 |      :return: &#x65E0;
 |  
 |  send_text_and_at_all(self, to_chat_room, msg)
 |      &#x7FA4;&#x804A;&#x53D1;&#x9001;&#x6587;&#x672C;&#x4FE1;&#x606F;&#x5E76;&#x4E14;@&#x6240;&#x6709;&#x4EBA;
 |      :param to_chat_room: &#x7FA4;ID
 |      :param msg: &#x6587;&#x672C;&#x6D88;&#x606F;
 |      :return: &#x65E0;
 |  
 |  send_text_and_at_member(self, to_chat_room, to_wx_list, msg, is_custom=False)
 |      &#x7FA4;&#x804A;&#x53D1;&#x9001;&#x6587;&#x672C;&#x4FE1;&#x606F;&#x5E76;&#x4E14;@&#x6307;&#x5B9A;&#x7FA4;&#x6210;&#x5458;
 |      :param to_chat_room: &#x7FA4;ID
 |      :param to_wx_list: @&#x4EBA;&#x7684;&#x5FAE;&#x4FE1;ID&#x5217;&#x8868;
 |      :param msg: &#x6587;&#x672C;&#x6D88;&#x606F;
 |      :param is_custom: False:&#x9ED8;&#x8BA4;@&#x4F4D;&#x7F6E; True:&#x81EA;&#x884C;&#x6307;&#x5B9A;@&#x4F4D;&#x7F6E;&#x3010;&#x9ED8;&#x8BA4;&#x4E3A;False&#x3011;
 |      :return: &#x65E0;
 |  
 |  send_voice(self, to_wx, path, voice_time)
 |      &#x53D1;&#x9001;&#x8BED;&#x97F3;&#x6D88;&#x606F;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param path: silk&#x6587;&#x4EF6;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :param voice_time: &#x8BED;&#x97F3;&#x65F6;&#x957F;&#xFF0C;&#x5355;&#x4F4D;:&#x6BEB;&#x79D2;
 |      :return: True:&#x6210;&#x529F; False:&#x5931;&#x8D25;
 |  
 |  send_xml(self, to_wx, xml_str)
 |      &#x53D1;&#x9001;XML&#x6D88;&#x606F;
 |      :param to_wx: &#x63A5;&#x6536;&#x8005;&#x7684;&#x5FAE;&#x4FE1;ID/&#x7FA4;ID
 |      :param xml_str: XML&#x5B57;&#x7B26;&#x4E32;
 |      :return: &#x65E0;
 |  
 |  show_wx_windows(self)
 |      &#x663E;&#x793A;&#x5FAE;&#x4FE1;&#x7A97;&#x53E3;
 |      :return: &#x65E0;
 |  
 |  sns_download_img(self, url, md5, key, enc_idx, token, save_path)
 |      &#x4E0B;&#x8F7D;&#x670B;&#x53CB;&#x5708;&#x56FE;&#x7247;
 |      :param url: &#x56FE;&#x7247;&#x5730;&#x5740;
 |      :param key: key
 |      :param md5: md5
 |      :param enc_idx: enc_idx
 |      :param token: token
 |      :param save_path: &#x4FDD;&#x5B58;&#x8DEF;&#x5F84;
 |      :return: True:&#x6210;&#x529F; False:&#x5931;&#x8D25;
 |  
 |  sns_download_video(self, url, md5, key, save_path)
 |      &#x4E0B;&#x8F7D;&#x670B;&#x53CB;&#x5708;&#x89C6;&#x9891;
 |      :param url: &#x89C6;&#x9891;&#x5730;&#x5740;
 |      :param key: key
 |      :param md5: md5
 |      :param save_path: &#x4FDD;&#x5B58;&#x8DEF;&#x5F84;
 |      :return: True:&#x6210;&#x529F; False:&#x5931;&#x8D25;
 |  
 |  start_wx(self, path=None)
 |      &#x542F;&#x52A8;&#x5FAE;&#x4FE1;&#xFF0C;&#x76EE;&#x524D;&#x652F;&#x6301;&#x5FAE;&#x4FE1;&#x7248;&#x672C;&#xFF1A;V-3.9.10.19
 |      :param path: &#x4FDD;&#x5B58;&#x767B;&#x5F55;&#x4E8C;&#x7EF4;&#x7801;&#x7684;&#x7EDD;&#x5BF9;&#x8DEF;&#x5F84;
 |      :return: (errno:&#x72B6;&#x6001;&#x7801;&#xFF0C;errmsg:&#x8BF4;&#x660E;)
 |  
 |  top_chat_switch(self, to_id, switch)
 |      &#x7F6E;&#x9876;/&#x53D6;&#x6D88;&#x7F6E;&#x9876;&#x804A;&#x5929;
 |      :param to_id: &#x597D;&#x53CB;ID/&#x7FA4;ID
 |      :param switch: True:&#x7F6E;&#x9876; False:&#x53D6;&#x6D88;&#x7F6E;&#x9876;
 |      :return: &#x65E0;
 |  
 |  un_follow_mp(self, mp_id)
 |      &#x53D6;&#x6D88;&#x5173;&#x6CE8;&#x516C;&#x4F17;&#x53F7;
 |      :param mp_id: &#x516C;&#x4F17;&#x53F7;ID
 |      :return: &#x65E0;
 |  
 |  wx_search(self, keyword, next_offset=0, search_type=0, filter_sort=0, filter_type=0, filter_time=0, filter_scope=0)
 |      &#x641C;&#x4E00;&#x641C;
 |      :param keyword: &#x5173;&#x952E;&#x8BCD;
 |      :param next_offset: &#x4E0B;&#x4E00;&#x9875;&#x7684;&#x504F;&#x79FB;&#x3010;&#x7FFB;&#x9875;&#x5FC5;&#x4F20;&#x3011;
 |      :param search_type: &#x641C;&#x7D22;&#x7C7B;&#x578B;
 |      :param filter_sort: &#x8FC7;&#x6EE4;-&#x6392;&#x5E8F;
 |      :param filter_type: &#x8FC7;&#x6EE4;-&#x7C7B;&#x578B;
 |      :param filter_time: &#x8FC7;&#x6EE4;-&#x65F6;&#x95F4;
 |      :param filter_scope: &#x8FC7;&#x6EE4;-&#x8303;&#x56F4;
 |      :return: Dict&#x6570;&#x636E;
 |  
 |  ----------------------------------------------------------------------
</code></pre>
<h2 id="&#x58F0;&#x660E;">&#x58F0;&#x660E;</h2>
<p><strong>&#x672C;&#x9879;&#x76EE;&#x4EC5;&#x4F9B;&#x6280;&#x672F;&#x7814;&#x7A76;&#xFF0C;&#x8BF7;&#x52FF;&#x7528;&#x4E8E;&#x975E;&#x6CD5;&#x7528;&#x9014;&#xFF0C;&#x5982;&#x6709;&#x4EFB;&#x4F55;&#x4EBA;&#x51ED;&#x6B64;&#x505A;&#x4F55;&#x975E;&#x6CD5;&#x4E8B;&#x60C5;&#xFF0C;&#x5747;&#x4E8E;&#x4F5C;&#x8005;&#x65E0;&#x5173;&#xFF0C;&#x7279;&#x6B64;&#x58F0;&#x660E;&#x3002;</strong></p>
<script type="text/javascript">
    localStorage.gitbook_dir = location.href
</script>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="教程/社区版跟专业版区别.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 社区版跟专业版的区别">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"WeChatPYAPI介绍","level":"1.1","depth":1,"next":{"title":"社区版跟专业版的区别","level":"1.2","depth":1,"path":"教程/社区版跟专业版区别.md","ref":"教程/社区版跟专业版区别.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["expandable-chapters"],"pluginsConfig":{"expandable-chapters":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2024-09-09T22:39:04.544Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-09-09T23:20:51.168Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

